﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace SDSystem.Models
{
    class RestaurantValidate
    {
        [Display(Name = "Restaurant Name:")]
        [StringLength(255, ErrorMessage = "Restaurant Name must contain least 5 characters", MinimumLength = 5)]
        [Required]
        public String Name { get; set; }

        public String Description { get; set; }

        [Display(Name = "Details:")]
        public String RContent { get; set; }

        [Display(Name="Photo:")]
        public String Image { get; set; }

        [Display(Name = "Address:")]
        [StringLength(255, ErrorMessage = "Address must contain least 5 characters", MinimumLength = 5)]
        [Required]
        public String Street { get; set; }

        [Display(Name = "City:")]
        [StringLength(255, ErrorMessage = "City must contain least 5 characters", MinimumLength = 5)]
        [Required]
        public String City { get; set; }
    }
}
